import React from 'react';
import useMicroApp  from '../hooks/useMicroApp';
import ErrorBoundary from './ErrorBoundary';
const Outlet = (props?:any) => {
  const { element } = useMicroApp(props)
  return <ErrorBoundary>{element}</ErrorBoundary>
}
export default Outlet